package com.abiao.shop.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description: LoginVo    登录信息实体类
 * @Author: AB
 * @Date: 2021-07-04
 * @Version:v1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Validated
public class LoginVo {

    @NotBlank(message = "账号不能为空")   //jsr 303 校验
    String username;
    @NotNull(message = "密码不能为空")
    String password;
}
